<?php
/* @var $this CourseController */
/* @var $model Course */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'course-form',
	'enableAjaxValidation'=>false,
	'enableClientValidation'=>true,
	'clientOptions'=>
	array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>512)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exam_time'); ?>
		<?php echo $form->textField($model,'exam_time'); ?>
		<?php echo $form->error($model,'exam_time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'total_question'); ?>
		<?php echo $form->textField($model,'total_question'); ?>
		<?php echo $form->error($model,'total_question'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'is_enable'); ?>
		<?php echo $form->dropDownList($model,'is_enable', array(0 => 'No', 1 => 'Yes')); ?>
		<?php echo $form->error($model,'is_enable'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->